package com.ms.p2p.service.impl;

import com.ms.p2p.dao.EvcTypeDao;
import com.ms.p2p.entity.member.Ecv_Type;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class EvcTypeServiceImpl {


	@Autowired
	EvcTypeDao evcTypeDao;

	public List<Map<String, Object>> findAll() {
		return evcTypeDao.finAll();

	}

	public Ecv_Type findById(String id) {
		return (Ecv_Type) evcTypeDao.get(id);

	}

	public List<Ecv_Type> findByType(String type) {
		return evcTypeDao.findByType(type);
	}

	public List<Ecv_Type> findByTypeAndIdNot(String type, String id) {

		return evcTypeDao.findByTypeAndIdNot(type,id);

	}
}
